/*
 * MensajesAlertasSource.java
 *
 * Created on 27 de octubre de 2006, 11:14 AM
 *
 * To change this template, choose Tools | Options and locate the template under
 * the Source Creation and Management node. Right-click the template and choose
 * Open. You can then make changes to the template in the Source Editor.
 */

package com.src.computec.gestion.carguegestion.source;

import java.util.ResourceBundle;

/**
 *
 * @author jlperea
 */
public class CargueGestionSource 
{
    protected static CargueGestionSource cargueGestionSource;
    
    private static ResourceBundle cargueGestionSetup;
    private static ResourceBundle cargueGestionErrorSetup;    
    
    /** Creates a new instance of CargueGestionSource */
    protected CargueGestionSource() 
    {        
        cargueGestionSetup      = ResourceBundle.getBundle("CargueGestionSetup");
        cargueGestionErrorSetup = ResourceBundle.getBundle("CargueGestionErrorSetup");        
    }

    public static CargueGestionSource getInstance() {
        if (cargueGestionSource == null) {
            cargueGestionSource = new CargueGestionSource();
        }
        return cargueGestionSource;
    }

    public String getCargueGestionSetupKey(String key) {
        return cargueGestionSetup.getString(key); 
    }
   
    public String getCargueGestionErrorSetupKey(String key) {
        return cargueGestionErrorSetup.getString(key); 
    }    
}
